<!DOCTYPE html>
<html class="x-admin-sm">

<head>
  <meta charset="UTF-8">
  <title></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
    content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
  <!-- <link rel="stylesheet" href="./css/font.css">  -->
  <link rel="stylesheet" href="./css/xadmin.css">
  <link rel="stylesheet" href="./css/advimg.css">
  <link rel="stylesheet" href="./lib/layui/css/layui.css">
  <script src="./lib/layui/layui.js" charset="utf-8"></script>
  <script type="text/javascript" src="./js/xadmin.js"></script>
  <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
</head>

<body>
  <div class="x-nav">
    <span class="layui-breadcrumb">
      <a href="">首页</a>
      <a href="">广告管理</a>
      <a>
        <cite>广告图管理</cite></a>
    </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
      onclick="location.reload()" title="刷新">
      <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
  </div>



  <div class="layui-card">
    <!-- <div class="layui-card-header">
     
    </div> -->
    <div class="layui-card-body">
      <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
          <!-- 这是广告图列表、修改、删除、增加 -->
          <!-- 头部筛选项 -->
          <form class="layui-form" id="selectForm">
            <div class="layui-form-item layui-inline">
              <!-- 行内表单 -->
              <label class="layui-form-label" for="input">广告图描述</label>
              <div class="layui-input-inline" style="width: 200px;">
                <input type="text" id="input" name="advimgdesc" autocomplete="off" class="layui-input"
                  placeholder="请输入广告位名称">
              </div>
            </div>
            <div class="layui-form-item layui-inline">
              <label class="layui-form-label" for="input">广告图位置</label>
              <div class="layui-input-inline" style="width: 200px;">
                <select name="state" id="input">
                  <option value="">请选择广告位</option>
                  <option value="已发布">已发布</option>
                  <option value="草稿">草稿</option>
                </select>
              </div>
            </div>
            <div class="layui-form-item layui-inline">
              <button class="layui-btn layui-btn-normal layui-icon layui-icon-search" lay-submit lay-filter="formDemo"
                id="search">搜索</button>
            </div>
            <div class="layui-form-item layui-inline">
              <button class="layui-btn layui-btn-primary layui-icon layui-icon-refresh-1" lay-submit
                lay-filter="formDemo" id="reload">重置</button>
            </div>
            <!--  -->
            <div class="layui-form-item btn">
              <div class="btn-left">
                <button class="layui-btn layui-btn-primary " lay-submit lay-filter="formDemo" id="add"> <i
                    class="layui-icon layui-icon-add-1"></i> 新增</button>
                <button class="layui-btn layui-btn-primary layui-border-orange" lay-submit lay-filter="formDemo"
                  id="export"><i class="layui-icon layui-icon-down"></i> 导出</button>
              </div>


              <div class="btn-right">
                <button type="button" class="layui-btn" id="btn-right-export"><i
                    class="layui-icon-down layui-icon"></i></button>
                <button type="button" class="layui-btn" id="btn-right-refresh"><i
                    class="layui-icon-refresh layui-icon"></i></button>
                <button type="button" class="layui-btn" id="btn-right-popup"><i
                    class="layui-icon-cols layui-icon"></i></button>
              </div>
            </div>

          </form>
          <!-- 表格区域 -->
          <table class="layui-table">
            <colgroup>
              <col width="50">
              <col>
              <col>
              <col>
              <col>
            </colgroup>
            <thead>
              <tr>
                <th><input type="checkbox" name="" id="checkall" data-name="checkall"></th>
                <th>#</th>
                <th>广告图位</th>
                <th>广告图描</th>
                <th>广告图</th>
                <th>广告图链接</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody id="tbody">
              <tr>
                <td>xxxx</td>
                <td>xx</td>
                <td>xxx</td>
                <td>xx</td>
                <td>xx</td>
                <td>xx</td>
                <td>
                  <button type="button" class="layui-btn layui-btn-normal layui-icon layui-icon-edit"
                    style="border-radius: 50%;"></button>
                  <button type="button" class="layui-btn layui-btn-danger layui-icon layui-icon-delete"
                    style="border-radius: 50%;"></button>
                </td>
              </tr>
            </tbody>
          </table>
          <!-- 分页区域 -->
          <div id="page-box"></div>
        </div>
      </div>
    </div>
  </div>


</body>
<script type="text/html" id="dialog-add">
  <form class="layui-form" id="form-add" style="padding-right: 15px;">
  <input type="file" style="display: none;" id="file" name="file">
    <div class="layui-form-item">
      <label class="layui-form-label">广告位</label>
      <div class="layui-input-block">
        <select name="state" id="input" class="input1">
          <option value="">请选择广告位</option>
          
        </select>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">广告图描述</label>
      <div class="layui-input-block" id="adv">
        <input type="text" id="advimgdesc" name="alias" required  lay-verify="required" placeholder="请输入广告图描述" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">广告图链接</label>
      <div class="layui-input-block">
        <input type="text" id="advimglink" name="alias" required  placeholder="请输入广告图链接" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">广告图</label>
      <div class="layui-input-block">
        <button class="layui-btn layui-btn-primary layui-btn-normal layui-border-orange"  lay-filter="formDemo"
                id="upload" style="color: #fff;">点击上传</button>
         
        <div class="picLoad" style="display: none;">
          <button type="button" class="layui-btn">删除</button>
        <img src="" alt="" id="showAdd" style="display: none;">
        </div>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-input-block">
        <button type="reset" class="layui-btn layui-btn-primary out">取消</button>
        <button class="layui-btn sure" lay-submit lay-filter="formDemo">确定</button>
      </div>
    </div>
  </form>
</script>


<script type="text/html" id="dialog-change">
  <form class="layui-form" id="form-change" style="padding-right: 15px;">
  <input type="file" style="display: none;" id="file" name="file">
    <div class="layui-form-item">
      <label class="layui-form-label">广告位</label>
      <div class="layui-input-block">
        <select name="state" id="input" class="input1">
          <option value="">请选择广告位</option>
          
        </select>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">广告图描述</label>
      <div class="layui-input-block" id="adv">
        <input type="text" id="advimgdesc" name="alias" required  lay-verify="required" placeholder="请输入广告图描述" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">广告图链接</label>
      <div class="layui-input-block">
        <input type="text" id="advimglink" name="alias" required  placeholder="请输入广告图链接" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">广告图</label>
      <div class="layui-input-block">
        <button class="layui-btn layui-btn-primary layui-btn-normal layui-border-orange"  lay-filter="formDemo"
                id="upload" style="color: #fff;">点击上传</button>
       <div class="picLoad">
        <button type="button" class="layui-btn">删除</button> 
        <img src="" alt=""  id="showChange" style = "width: 190px;height: 100px">
       </div>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-input-block">
        <button type="reset" class="layui-btn layui-btn-primary out">取消</button>
        <button class="layui-btn sure" lay-submit lay-filter="formDemo">确定</button>
      </div>
    </div>
  </form>
</script>


<script src="./lib/layui/layui.all.js" charset="utf-8"></script>
<script type="text/javascript" src="./js/xadmin.js"></script>
<script src="./lib/layui/layui.all.js"></script>
<script src="./js/jquery.min.js"></script>
<script src="./js/axios.min.js"></script>
<script src="./js/ajaxBase.js"></script>
<script src="./js/advimg.js"></script>

</html>